reworking DB entities so linked accounts get deleted when account is deleted