Rename sort_by to order_by
Draft of api, building SQL from query string