LPS-30606

Hi Ray, here is the new sql checker. Please send it over to Brian, if you're ok with it. I already commented on the original pull that I'd be sending you this. Thanks.