Creating generic dao