If i were you i probably moved this code into Stored Procedure. Anyway there is no need to have second sql that fetches ID which further be used to build comma separated ID string and later consumed by an update. You can totally ignore it. You can create SQL Batch similar to below which can do all your work in one go.
Begin
UPDATE TABLEDB1 set status = 'Active'
Where Email in (strEmails);
Delete from TABLEDB2 Where Email in (strEmails);
Delete from BounceMail Where Email in (strEmails)
End;
If both DB are on same instance then you don't even required first select. Take that as a hint and try again.