add logDb method in Model