Convert to use UUIDs, includes old database migration. Also cleaned imports.