I have an app that calculates points for a user, based on certain rules, for every dollar they spent on my portal. I am using the following stored procedure to update the points