implement simple daos and template daos