In order to use the db for system monitoring we need a way of mapping the locator the the uuids the appointments/jobs are identified in the db. First steps towards #15
The difference between master and the old data-persistence branch was huge, seems more effective to manually cherry pick the changes and integrate them