Certain Query Answering in Partially Consistent Databases