map the model in database works now