Fixed the last (?) bug in the test database scripts.