More fixes related to last commit RE inserting/updating orders on some MySQL setups.