added truncate_table helper method