3 banks upgraded, 4 downgraded in ratings