Renamed 'metadata.queries_collection' to 'metadata.queries'
Fixed $app->extend() syntax