LIMIT and ORDER BY support for MySQL

Add support for limiting and order by for mysql.