Adding order_num generation to orders