ported handler and tests over to using new MapDB based repository