Fix the bugs of export plugins
There are two bugs here,
1. The sql string $sql should not have breaklines
2. For every query we need to create a new command, otherwise the query always return the say results

What's more, the try in ExportController.php is there but completely useless because they didn't handle the error at all.