Updated the SQL for CodeSystem.