fix count active users and users list for ODBC