moved mongodb parameters to the top of the class