Changed how db vals are applied.