open page - make a function to get all the data within a tab in one SQL request