imporve sql wall rule