Modifications to SQL Queries