Use UUID for generation of IDs. Have keycloak working with mysql and postgresql