How to link a group to a database?

I created a design of answers without using repeating groups. I would like when someone clics on one of the groups it creates it matches my options sets and ads the right answer to my user database.
Do you have an idea how to do that? I hope it makes sens ! Thank you