Dear Friends We Want To Save Our Customer Group Wise In Database My Admin Php

Dear FRIENDS we want to save our customer group wise IN DATABASE MY ADMIN PHP so we have the following requirement
* When we create user group under customer, at that time database should become a table with the name of user group
** And user group also has to have API so that specific group member can be accessed in any app
* When the customer will join the user group and as soon as it is activated by the admin in the admin panel, then that user has to show in that user group.