changed database config to pg