End test work with database

SQL insert, select testing.
Create 2 table for program.
In future - cycle read from list of devices, error control and write to
base.