create model and db