modify conf.
fix bug: support search pattern start with *
update sql