Changes to SQL schema, updated dependencies, XML reflects length and correct MIME types.