How to fetch values from Database in Runtime

Hello All,

I have 2 environments (QA and Prod) and i want to use database for fetching few values. But under Project Settings we have option to add database credentials either for QA or Prod. But everytime i run the script we need to change the credentials.

Can someone suggest is there any way?