Added some platform stats lib and superadmin

Please @Kartones CR
can you check if we have an index on users.organization_id ? to speed this up