Fixed a bug creating the test database.