Refine some codes with DataBase, ConnectionPool and so-on.

Signed-off-by: 核心力量 <kernelforce@gmail.com>