Put outcome in database also when dealing with user tests.

Closes #255.