finished first version of mongo db