Implemented CREATE OR REPLACE for stored functions. Fixed a bug where CREATE OR REPLACE and CREATE...IF NOT EXISTS was not logged properly for PROCEDURES and FUNCTIONS.