Issue #2721: fixed bug on ALTER DATABASE command