Updates pointer to PG database.