Use in-memory database in test and dev environments.

Closes #14.