Update: I believe the problem may lie in my long if statement failing, leading to all the tables being recreated. I'm going to look through it.
I've made the if statement the following:
I've made the if statement the following:
if table not in db_tables
and it works now. For now, since I'm not going to be changing the columns, I'll leave my if statement at that.