Small fixes in monitor.
Simplified checkpoints implementation. #141
Set up Haystack to use DB in tests.