dbhelper added validation for existing rows