Change filemetadata query and taskdb to use clob or longtext