added isCurrent constraint to DB