dump dbstruct as sql