new private getEntry function for inserting new data