Refactored and added update, rm, get and bulk functions