schema is retrieved from the db cache now.  Working on restoring distinct results