Changing added_date release references to not cascade on update or delete of releases table (it should serve as a history). listened_dates should cascade its references to release ids on update or delete. Also simplifying column names to just date and release.
Adding ON UPDATE CASCADE clauses to support automatic updating of references in case an id is changed.
Minor formatting
Only record an 'add' when the release did not exist before.
Bug fix: returning a release ID when there is only one recording result.
Making setSelectedRow consistent with manually selecting a row.
Revising switch release path. Tested OK.
Adding country column to QueryResultsDialog