setting up the database to use postgres