Database query syntax changes