Massive update. Fixed SQL tables - Many things are working now.