profiled updateschema. new getworkdir param. working on templat
merged conflicts. added dobackupflag and set it to False for dbcache