Fix path for db
Move sandmanctl to separate file; fix path issues in Makefile and tests