script to dump data in table