Update queries.js