remove bugs
Remove a severe bug when constructing location database
Improve log matching machnism and fitering polocies