refactor : add index and check mongo at start

close #91