Create a database directory for test.