chat db methods