Fixed missing #OWNER# substitution replacement.
Removed all references to UTL_FILE.
Changed query2sheet to function returning BLOB.