Don't repeat yourself, the database tables have the same column names for a reason.
Do not execute SQL queries in a loop (although in this context it is okay within the outer loop).
Do not create multiple INSERT statements if inserting many values, use a single statement. This way you don't have to care about transaction commits (which is error prone if handled manually).
Do not trust user generated (ICU translations) content, always escape properly (which means using prepared statements in our application).