createDatabase method