int numColumns = meta.getColumnCount();
String[] dbCols = new String[numColumns];
for (int count = 1; count <= numColumns; count++)
{
dbCols[count - 1] = meta.getColumnName(count);
data.addHeader(dbCols[count - 1]);
}
while (rs.next())
{
data.next();
for (int count = 0; count < numColumns; count++)