store a reference to the database file instead of a string
The references to elements in the unordered_set are stable so that causes no harm.
The reference_wrapper is pretty nice because we don't deal directly with pointers and it converts implicitly to a reference.
Edited by Valentin Boettcher