save card categories to db