auth class edited, added sqls