use an sqlite db instead of a flat text file