Jquery Check If Substring Exists Sql