changed database configs to postgres