[BUGFIX] Reorder SQL statements
[BUGFIX] Set correct column for table index
[DOCUMENTATION] Update stats