add support for mysql mediumtext and longtext. fixes #288