Why you have such approach?
With AS7 you can not lookup DB connections remote.
Passing connections to a remote system will be not a good approach, you don't know whether it works here!
Also it might be a performance issue.
There are several problems, i.e. the server might be use a DB which you did not know at client side.
You may explain what you want to achieve, maybe there is alternative