Setting up the database to use postgres