Implemented returning clause on the insert statement