updated functions except union and difference

All relational functions have been updated except for union and
difference; however, the cross product and natural join might need some
changes