Added a check to insure that during the api refresh the server is online for every user minimizes chances of database wipe