configuring the database to use postgres