Add queries for getting data for logbook activities.
Add unfinished logbook activity.