All logic lives in express endpoint at the moment. I should move my db logic code to seperate controllers.