wrap db methods