records: update field definitions and functions

* Update the field definitions and functions to the new JSONALchemy
  configuration.

* Update `json_for_form.py` to fulfill new JSONAlchemy interface

Signed-off-by: Esteban J. G. Gabancho <egabancho@gmail.com>