comment db.h
delete db_(job|hardlink)_delete_path

they were redundant and not used anywhere
unify box comments
reorganize db.[ch] a bit