Added TRUNCATE queries to empty DB ;More UI fixes