added basic functionality to the BaseDao