Added SQL to upgrade existing DBs, and moved STCM to release v1.0