refactor to support of instantiated Db
resolve conflict
simplify, isolate DB so records is used for collection storage