mongo related things moved to separated file