added prelim work for mongo db, much more to come... hopefully.