$this->database -> $this->db
Convert to new DB module
Update localvars syntax
Update validate syntax
Update syntax for CSRF
Update enginevars syntax