Work on SQl and HTML filter functions