querying a MIME database



most linux distros have a command update-mime-database, but is there
any way to query this database to determine the application to be used
for a particular type of file?

Thanks.

Nupul

.