chapter5 - Simple DAO pattern with a factory (no transfer object)