add the 'insert' and 'update' methods