Expose store._sql for upgrade.py.
Ported to SqlAbstraction-based DataStore, back to Abe29 (tested Abe37).