Adapted database metadata generation for omx 2.2 model

Also commited some additional files for TIFN and CBM project.