The name read-only property of the IDBDatabase interface is a string that contains the name of the connected database.
name
MDN Reference