added ng-click method that will take variable value and insert it into database