Rewrite Skip support for MySql.

Use "LIMIT take OFFSET skip" instead of "LIMIT skip,take"
Use match expression instead of if-else.