Changing preference from flatfile to sqlite

This isn't ready to be merged yet.