Saving categories to database added.