Fix CSS, add SQL for tables and reorganise file structure