Configuring the database to use postgre