I don’t think you can submit a document with frappe.db.set_value. I don’t know your full use-case here, but this might be better as a server-side script.
If you really want to use a client-side script, you might use something like max’s solution here: