public LocalManagedBufferFile createDatabase(String itemName, String fileID, int bufferSize,
			String contentType, String user, String projectPath)
			throws InvalidNameException, IOException {
		synchronized (fileSystem) {
			repository.validate();
			repository.validateWritePrivilege(user);
			if (getFile(itemName) != null) {
				throw new DuplicateFileException(itemName + " already exists");
			}

			// Buffer file does not yet exist - too early to get folder item needed for RepositoryFile
			LocalManagedBufferFile bf = fileSystem.createDatabase(getPathname(), itemName, fileID,
				contentType, bufferSize, user, projectPath);
			RepositoryManager.log(repository.getName(), makePathname(getPathname(), itemName),
				"file created", user);
			return bf;
		}
	}
Create a new database file/item within this folder.
@param itemName name of new database
@param fileID file ID
@param bufferSize preferred database buffer size
@param contentType application content type
@param user user who is initiating request
@param projectPath file path within repository
@return buffer file (contains checkoutId as checkinId)
@throws InvalidNameException if itemName is invalid
@throws DuplicateFileException if file already exists with specified name
@throws IOException if an IO error occurs
Ghidra/Features/GhidraServer/src/main/java/ghidra/server/store/RepositoryFolder.java