Modified readAll, readFolder and readFeed SQL queries