init and mongodb