added macro for defrecord in the datamodel. todo records to maps...