Remove queue locks
Done merge date periods for getnotesbydates (not tested)
NOT WORKING