You can find the correct database in conf_global.php
What you showed here is different than above screenshot. Is this just a snippet or are you getting new/different queries after each run?
If just a snippet, please provide us access:
We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section.
We look forward to further assisting you.