code is refactor, the content provide and db adapter be all supported.