Add insert, getLastValue, update methods