Update log entry for sql database