added categories model and join table