add mongoFactory to allow mongoClient injection