ported MIDAS' config and lib for ORM use
ported MIDAS' config and lib for ORM use