db insert and update changes