added logging in db._lastsql the CREATE TABLE