connection refactored to fit new pg pool paradigm. Added Sync.subsync and connection.lock/unlock mechanics.