1. fix a bug in mongo connection return value;
2. change redis' config 'which', rename to 'db'.

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