upgrade script for mysql