I have a database, and I know where it is, but when I display all I want is database name, not path.

How is this done?