Updated the controllers and models

DB should now contain versioning. Can't test locally because of auth
being broken locally