I imagine you'd need a database with two separate tables - one that stores the questions which will be your "query" table, and one to submit answers to.
I think a web service would be useful for you. Qdabra's DBXL tool might be of help - it has a QueryDB web service that allows you to query data from SQL; you can even build complex filters if needed. It also has a submit web service that will submit your data back to SQL. You can download it here for a free trial to see if it suits your needs.