re-attempt in case of failing to access sqlite database