Fix mysql compat
Fix sample