Import loop checks for record in db