Provided input for remarks and dates.
Reduced number of SQL queries by using a more complicated one.
Simplified tag query.