Refactor SqlStore::doSchemaUpdates

This allows schema updates to be defined in a more concise way.

Change-Id: I387f1211b5cd27541b38e8d0b4d824e69357f7f2
Merge "Refactor SqlStore::doSchemaUpdates"