wip - saving categories to db bug