setting database config to postgres