changed createDatabase (iterator)