use sqlite instead of log files