In order to send records to a database, you must insert a Historic object. A tutorial for creating Historics can be found in the article http://kb.elipse.com.br/pt-br/questions/123.
Figure 1: Inserting a Historic in the project
Create two Setpoints, two Internal Tags, and link each other.
Create a Historic with a writing time set to 0 ms, with two fields of type Integer, and link them to the Internal Tags