sample getDb and parse result in client
Rebased client