add custom tab to classes card

Hi,
Can I add custom tab with view from sql query to standard classes card,
I want to show history of relation on the card.