added function to fix mysql database collation

added function to fix mysql database collation