Iterate over games instead of returning the whole list.
Create DB in case it is not initialized.
Make name matching when checking for duplicate games non-strict.
Import games from PGN to DB.