pull data from the databas for reset flow