Removed redundent permission check for CREATE OR REPLACE DATABASE
Implemented CREATE OR REPLACE TRIGGER.