Skeleton implementation for mongdb.
Class rename.
Added finds bugs. A few more changes related to mongodb stuff.