All the db issues are now in controller.py