almost all the functions are working in mongodb