Improved sql syntax.
Updated CHANGES.