Fixed search-db building bug