TEST: Use a temporary file instead of a local file for test db.