Move updating orders and programs to service and dao