Fix for old studio and ui for database disable

- fix for long database names