Updated problem dao and tests.