crud functions for restful service finished