read and insert data