Added logging to generic dao