Import log files into sqlite and query it