Fixing indexing bug in Log table indices and creating logger class.
Added methods for manipulating the log sqlite table.