test creating a second db
moved to quickly with sync test, add db.resetHead()
refactor
refactor