[rcpub] A series of checks to make sure only valid sql queries can be made.