inserting data with metadata