Remove some unused SQL functions
These functions aren't used by any known clients
Test Plan
rebuild-testdata + make test
Migrated from D471 (view on Phabricator)
These functions aren't used by any known clients
rebuild-testdata + make test
Migrated from D471 (view on Phabricator)