Added "select doc by ID"

Sometimes it's useful to retrieve a previously saved document by knowing
its ID (so the value returned by getId() method).
NOTE: test case has not been... tested so much. Please double check