Moved db structure to own package, toObject() on find.