Performance improvements for home page
accepted_licenses relationship needs to be lazy joined loaded
Don't use transaction to unlock tasks. Use the same session.