added success/failure logic to insert_person