Got the controller to try and write to MongoDB via a repository.