Basic MongoDB functionality, including repository pattern