More repository and mapping functions.
Integration tests for persisting a Period.