Add Active field to Category and Item

Add Active field to Category and Item. Modify sql commands and views