Session db generation fix, attendance exporting