updated database config for postgres