parse log files to sqlite