change filepath -> dbpath

Signed-off-by: TZ <atian25@qq.com>
add optional router

Signed-off-by: TZ <atian25@qq.com>