Mysql query to get table defs for pasting into a table in MediaWiki