Add db api support

request handler can easily using with 'self.db.xxx'