Fixed postgres connection testing in api.