add a function to insert an Entry