fixed some problems with deleting users with multiple hosts from DB