altered mysql to use `mediumblob` instead of `blob` to avoid 64k limit