Fixes and improvements
Removed unused scripts, moved table_query to autorun. Other stuff