fix postgresql settings.