Orders edit

Added add operation $query creation
Orders edit

added edit. Now add and edit working perfectly. Removed unnecessary
code.