environment variable for sqlite directory

Running the tests with the sqlite db on a tmpfs (e.g., /dev/shm on
ubuntu rather than /tmp which is just ext4) makes for significantly
faster setup.

Change-Id: I1885b2d7d8155918eee74becab2dfa381e48aa9b