Change journal mode to MEMORY.

WAL has some issues if you want to use the database in
a distributed manner, it doesn't work well with multiple
hosts accessing the same database and requires write
access to the host directory for the user using the
database.

https://www.sqlite.org/wal.html has some more details.
Merge pull request #33 from roryk/master

Change journal mode to MEMORY.