Fix postgres database setup