Replace mongoDb orm layer with theory orm layer and tested