Changed truncate query into delete from for sqlite compatibility
Reset tables for sqlite better
Embarrasing typo fixed
Merge pull request #140 from jadwigo/master

changed query for clearing log