updated chat db calls