Was declaring all orders in controller rather than DB