Added restriction by year: only display the selected year
bugfix: the script was saying that any transaction with an empty message was not found, despite being valid and present in the database.