Matrix Quantum Mechanics and 2D String Theory: Non-trivial Backgrounds