add sql scripts for table position and transaction