Use an in-memory SQLite database for testing

This does not use the ":memory:" database type, but creates the database
file in `/run/shm` (if it exists). This directory is mounted as "tmpfs"
on modern-ish Debian distributions which means it is backed by memory.
Doing this cuts the time for a full Cucumber test almost in half!