Renamed MemDB to SQLiteDB
Modified database calls to handle file-based DB, removed all sync functions
Set database into write-ahead log mode, disabled synchronous mode, added
ignored lines for resulting extra files
Renamed some database variables to match file-based DB nature, removed
some unneeded configuration params
Further fixes to database queries (bad queries are now noted on startup).
Segfaults on singleShotMode
Merge pull request #1 from YSTV/file-based-databases

Merge in file backed databases functionality