Add scopes to modify queries dynamically