ajaxify search form with raw sql queries. bugs?=)