add db type to model, v.1.2.1