#9 refactor for apis to be more bson/mongodb centric