Filtered lessons view

Lessons can be filtered by future times.
Also fixed an issue with retrieving children for a parent, following a
SQL refactor.