add logger to dao classes.
add id to period.
fix of the errors of the new period id impl.