query dump table for html export