fix MongoDB error lookup
fix test warnings
fix MongoDB rational tests
PersistDay support for MongoDB

closes #121
fix test warning & build issues