update database with email changes