Returns a database handle for a new in-memory database.
This is needed for running the module install tests in case the TDG_...
environment variables have not been set.
The in-memory database is a SQLite database provided by the wonderful DBD::Sqlite module.