added support to store topic along with regId, deleting duplicate topic subscriptions