use sqlite instead of txt file. Fixes #1