Is this a UBB feature to optimize the tables, or is that something you have to do inside mysql itself?

I'm not quite sure what you mean by optimize?

Rhaya