I am making an api for a class project whereby i need to select all data from my sql table and and update it if the last updated day is older than the current update. basically