added a single generic dao for basic functions