add helper  for  db