Model db configuration