working on mongodb interface