Universal API to define models, persist defintions in json and convert them to ORM models