Ranked Retrieval in Uncertain and Probabilistic Databases