update search db interface
update the cgi script for searching sql