transfer data into sql