[server] Check store id validity in a few RPC.
[server] Improve db connection pool.