move mongodb params to config