BS-7436, fix clean tables.sql