Read the database in by using the "visitor" pattern. Modified file