add schema index database RPC.
merge with zhaoyang.
merge with zqh