use a database in a temporary directory