table updates, main_page SQL begins