Python Class Run Function Postgresql Architecture Interview