continue work on has_many_and_belongs_to model and queries