add threading support
fix error handling, add propper logging

parse the log file entirely first so any exceptions are caught before
the database insertion process starts.
Merge branch 'threaded'
errors are not always present