Setup model and databases