updating results to mysql database