create category table and set up reference between stops and categories