New Trigger, Works As Expected Now

There was an issue with the trigger in SQLFucntions.sql. This trigger
calcluates points correctly!