make the SQL getter functions "STABLE" instead of "IMMUTABLE"