bugfix sql structure dump