You can use MySqlConnection and MySqlCommand to execute the insert statements to the database. For an example, have a look at
MySqlCommand[
^]
Addition:
...
Dim i As Integer = cmd1.ExecuteNonQuery()
cmd1.CommandText = "UPDATE Table SET Status = @NewStatus"
Dim statusparam AS MySqlParameter = new MySqlParameter("@NewStatus", MySqlDbType.Long);
cmd1.Parameters.Add(statusparam )
If (i > 0) Then
statusparam.Value = 1
Else
statusparam.Value = 0
End If
i = cmd1.ExecuteNonQuery()
con.Close()