Fixed database order not working
Fixed database results throwing an exception when orders working