Cleaned up the 19_query.sh script a bunch