[scripts] added a script for mysql database upgrade