postgres will now make sure all tables (even foreign key referenced tables) before creating the current table when trying to automatically create tables