update dependencies, fix queries