Adding database loading and data conversion to orm module