sql modified to accommodate simpleUserAndLiableCost cascading