adding database + model