Add stored procs for getting task badge restrictions