Fixed Database query options for `ORDER BY` and `LIMIT`