I believe you will need a web service for this. Try Qdabra's DBXL web service - it has a method called QueryDB. You can add rules to your ID field that queries SQL with that specific ID. A free trial is available
here. Contact us if you need further assistance setting it up.