move mongo DB init to sepate file