improved library logging
handle albums with a date of None properly

e.g. fix so unique indexes in db works properly with such values