update queries & add retry counter