add method to retrieve all documents ids from a db