fetch status data and store in database