update query.py command