Implementing the Insert command