Update queries.py