Use of CI, ORM and Ajax