added database.users.query() method and example.  Still untested.