create storeLastRun function
able to get running data