Create database model and some minor modifications to model.