updated spacedRep controller, added mongodb local database