Mongo id fixes

Fixes a few issues involving mongodb

Closes #39 
Closes #43

Do you still need these warning messages? Mongo seems more efficient with the new query