Fix MySQL database UUID migration. Fixes #265