How to run custom sql query on jira database?

I have installed plugin for DB console but the documentation of it is blank! I don’t know how to use it!
I want to run simple query like:

select * from issuetypescreenscheme

to get know what issueTypes I can Use. The default 10000 or 10007 is invalid.

Hello, which plugin do have installed?