Hi YulIhnio,
To insert values to a database automatically after loading values to a textbox you need to write code for insert and call after assigning the value to TextBox.
Example
string barcodeText = ""; // Value from barcode reader.
TextBox1.Text = barcodeText; // Assigning to TextBox.
InsertBarcode(barcodeText); // Insert into Database.