added function to insert device token