Yes, definitely I agree with everyone here who replied. I forgot to warn elwan to be really careful with CFG database. But he mentioned that he wants to pull out the data.
Elwan:
Using Configuration SDK(Software Development Kit) is the recommended way. Although I have no experiences with it, I am convinced that you will get everything you mentioned and it would be absolutely safe and appropriate way how to access or modify the Genesys configurations data.
In the case you want to continue with idea to read directly the cfg data from cfg tables, then the idea from Tony with doing the backup copy of the cfg database on daily base is really the best precaution how to secure you won’t harm your production at all. However you won’t have the up-to-date configuration status of your CC.
Another way would be to let your db guys create for you new db account with read only access permissions to production cfg tables you need.
To the list of cfg tables, I could find somewhere the cfg database initialization script and extract the table names from there, but there is easier way. Just tell your db department to make available for you all tables, which begins with prefix "cfg_". Do not forget that you MUST have read only access to those tables!!!
Be careful!

Cheers,
e.