category Insert + Update + fixed bug