Fixed some db issues. Added order_no to orders + related code.