add db basic function(not include delete)