Fix db name incorrect.
Add paging support.