made routing nicer
added db.count() and db.reset()