Added possibility of stubbing mongodb