Javascript String Includes Substring Mysql Create View