mysql: add version to metadata