small adjustment to db calls