New order reward points table SQL fix