How to change username and email from MariaDB

Hi! I would like to change the username and email of an specific user from MariaDB directly without using the GUI. Is it possible? I saw a lot of table that are using the username and email, which are those tables that I have to update?

Thank you.

You will have to call frappe.rename_doc("User", old_name, new_name);

Thank you!