store db models as local vars as well as exports