Mysql adapation changes