added missing database fields, tweaking view.