more work on mongo db backend.

Signed-off-by: Daogang Tang <daogangtang@gmail.com>