setup SQLite to use FK=ON, JOURNAL_MODE=MEMORY