Moved all DB code into the event handler so that it is possible to provide a custome id_provider and null event handler and seperate out recording from the project manager
This should allow for the recorder to be detached from the project manager, once I decide how to configure it
Sunra utils now provides a config object for the recording service allowing proxy, event_handler and provider to be dynamically configured