kinda mimics mysqldump, but allows filtering columns AND rows (and joins) by running arbitrary MySQL query.