a draft about new db api

x