Added User Progress SQL logic