Added aggregation option
Changed 'client' option to generic 'options' parameter for middleware requests
Added support for db-specific SQL like GROUP BY functions
Supports MySQL and SQLite