DB uses WAL journal and enforces foreign key constraints
upsertString is now createOrGetString
Add better datastore stat logging