inserting data functions and example