put sessions in yml database and changed past sessions to use template