Add some file docblocks
Use Connections::getHandle
Extract password/key fetching