Bug Fixes (single zmq context, timeout in database connection)

Simultaneous access to a row when writing and reading will cause an exception. This allows the proces to wait until it's available and then write instead.
I think you are wrong here as we were never destroying the contexts that were created in connection.py