How to convert code which use resurce_db to config_db

In reply to chr_sue:

Why in the agent? Can I do it also from the driver right?