Web Database Applications search code