adding cat_by to database