change sql for email and phone