Changed the user types to upper case in sqls.