Piyush try this one;
--- Restaurant Schedule & Order Schedule From Database ---
update restaurants set is_schedulable = '1', accept_scheduled_orders = '1' where is_accepted = '1';
--- Delete Payment Failed Order's From Database ---
DELETE FROM orders
WHERE orderstatus_id = 9