avoid joining the corpus table in "find"
Revert "make the SQL getter functions "STABLE" instead of "IMMUTABLE""

This reverts commit 6c7ebcfed18410f0c3f80773c33a71e635dfa93e.