script for cleaning and storing mysql schema