Added insert method to the entity