streamlining db calls