SQL query is now webscale! (or tidier using query builder, at least)