mongodb refactor; added mongodb tests; fixed s sqlite datetime bug
merge in mongo refactor; added mongodb tests; fixed sqlite datetime bug