Hi,
You can define another connection string in the web.config file and then get a connection in the code.
CMS.DataEngine.ConnectionHelper.GetConnection(string connectionString)
Then you can use
ExecuteQuery and similar methods over this obtained
GeneralConnection object.
Regards,
Zdenek