Added "select document by ID"

Sometimes it's useful to retrieve a previously saved document by knowing its ID (so the value returned by `getId()` method). In particular when IDs are not auto-generated, but follow a pattern defined by the admin.
NOTE: test case has not been... tested so much. Please double check.