modified query that insert new person