Refactored two functions two one with an inner select statement
Simply SQL function, refactor addRoll function. Currently works for single roll - need to accomodate for all rolls