change SQL query to check user groups without suffix '-global' (like bot-global, checkuser-global) (BAC-303)