Changed cleantables.sql to use all TRUNCATES to clear all DB tables. This avoids the possibility of incorrect use of auto_increment which is not supported by mysql in the manner we wished to use it- i.e. starting all table row id's at 1.