Insert/retrieve test results from database.