Added sql function to insert new order item from ajax call