Ensure files are parsed only when not in the database, and change dictionary keys