complete base function and start mongodb part