context manager for connections
Added helpers file for some code.