Make in-memory database work for test configuration

The key to making this work was to append ;DB_CLOSE_DELAY=-1 onto the end of the database url.