I have updated to read from a database now.
- sqlite for now, but will apply to postgres or whatever with slight modifications.
Merged adding-sqlite branch into master