Scripts for MySQL edition, trade side