fix the bug triggered by inserting into empty table.
ResutSet::print() emits query results in a very professional way.