List down folders underlying file info using SQL query