Modify function to update the Results db