add setting metadat to orm, incl tests