fix(database): Escape database name in "ALTER DATABASE" SQL instructions (closes #5189)