def fix_autoincrement(table_name):
db.engine.execute(<EOL>"<STR_LIT>".format(table_name)<EOL>)<EOL>
Auto-increment pointers are not updated when IDs are set explicitly,
    so we manually update the pointer so subsequent inserts work correctly.