Implementation of update/insert/delete.[NO TEST]