added db calls