simplejson req
pragma journal_mode=WAL only in recent sqlite3 versions
__getitem__ fetchone, not fetchall