generate main controller
Remove category_id from posts table