services_by_login: more common sql