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