Improvements on compatibility with mysql servers