Category class added, fixed primary key bug in Persistence