Add had_many functionality