add some base database operating