I don't use Community Builder myself so I can only give you some general tips.
What you could do to find the right page to edit:
create a backup of your site (e.g. using Akeeba Backup) with files + database
install that backup on your local computer (e.g. using XAMPP or something similar as web environment)
visit your website in your browser and go to the ...
Thanks for reply.
As the fuction is no argument and inserting default data just to see if I have connection between. I have create a form and proper function but nowhere like could make it run on view (as you have mention probably lack of controller class).
Thank you for tutorial. Joomla seems to be very strict about MVC.
The view shouldn't be calling the model or any SQL directly under MVC rules as I understand them therefore your button should call a controller and the controller should then pass control to the model. There is not enough detail in your question to know how the data is being collected in the view, in particular if it is using a Joomla form.xml or if it is ...