If I do this to assign a dummy name:
data = [Number(db_result[0].id), String("asdfa.jpg")]; console.log(data); conn.query("UPDATE details SET name