add some db_api, next will reconstruction