simplify db calls