some fixes for MySql sample