BUGFIX: model needs to reference internal db connection
Add batches.transLimit, products.special_limit to restrict number
of times sale price applies per transaction. Replaces old method
of abusing quantity columns. Column existence is always checked
before usage.