Minor sql tweaks to schema change tracking

Change-Id: I78ff1196c56ad701cac9fa51af6e74800691c091