add remove of document
update or insert document
Refactor code to use API on DBCursor
Improve naming of various methods
Add ensure-index to collection