Added functions to user api for deleting and upading user records