DAO template for models.