Added query for ACTIVE_USERS in mysql production environment