Queries are now working