"Refactoring the locks daemon to use the dbmanager"