chartTest added
added NOT NULL to title column and changed saveOrUpdate() to update()
Added check for nonexistent object before update