create model from db import