test function added
Switching to mongodb