Publish scrobble and avoid duplicate metadata
Add DB existence checks for tracks, artists, and albums before creating
records (match on title/artist/albumArtist as appropriate). Implement
putScrobbleRecord to construct, validate, and publish a scrobble record
(handles timestamps, optional fields, rkey). Replace direct console logs
with structured logger calls and improve error messages. Also import
'or' from drizzle-orm for compound queries.