library: give precedence to lossless files
if a file with the same track id is found:
- if the database contains a lossy version, remove it and add the
lossless one
- if the database contains a lossless version and a lossy is found,
ignore it
- if formats are the same, keep both