upgrade querys