Started implementing database in to the model.