fix #66
some improvements to the LOG system
spelling correction :)
minor SQL correction - added missing ;
fix #67