Configuring the database to use postgres