enable pg pools

Without that check, every client must be ended which forbids using pg connection pools (max recursion limit).
With this change, after performing query, you should use:
connection.done() instead of client.end()
which will return client to pool safely.