added index on charge and charge_structure tables - references => belongs_to for more clarity