Reconstructed category and topic code

1. Fixed bug that asset data is not delete when remove a published article
2. Fixed bug that deactivate search is not valid