Implement the functionality for the function calculate_sum_lcm_gcd(n, MOD=10**9 + 7) which calculates a specific total sum based on the properties of Euler's Totient function.
Functionality Requirements:
Euler's Totient Function Calculation: Precompute the values of Euler's Totient function, φ(i), for all integers from 1 to n. This function counts the number of integers up to a given integer i that are coprime to i.
Prefix Sums Calculation: Create two lists, P and Q, where:
P[i] should store the cumulative sum of φ(k) for all integers k from 1 to i.
Q[i] should store the cumulative sum of φ(k) * k for all integers k from 1 to i.
Total Sum Calculation: Compute the total sum using a loop that iterates over all integers g from 1 to n-1. Use the precomputed values in P and Q to calculate the total sum based on the provided mathematical formula.
Input/Output Requirements:
Input: The function accepts an integer n (1 ≤ n ≤ 10^6) and an optional integer MOD (default value is 10^9 + 7).
Output: The function should return an integer representing the computed total sum modulo MOD.
Implementation:
The solution must be written in a file called /app/solution.py.
The function must be defined as specified in the function signature and include the complete implementation as provided.