moving to mongodb: restructure
moving to mongodb: fixed tests for travis