Implements ALTER DATABASE