Update, delete, insert bug fixes