added categories and store them to db