edited createdb function so that it returns an error if you try to createDB on a file that already exists