add method truncateTable() and resetSequence() for pgsql