Add model and configure database