[I] add the search management command, fix a lot of bug in quote management